// 自添加接口
import request from '@/utils/request'
// 获取所有楼盘信息
export function getAllLlift(pageinfo) {
  return request({
    url:'/getAllLlift',
    method:'get',
    params:pageinfo
  })
}
// 修改楼盘投放状态
export function changeliftstatus(params) {
  return request({
    url:'/changeliftstatus',
    method:'get',
    params:params
  })
}
// 批量删除楼盘
export function deleteloupanArr(arr){
  return request({
    url:'/deleteloupanArr',
    method:'get',
    params:{idArr:arr}
  })
}
// 条件查询楼盘
export function selectLoupan(obj){
  return request({
    url:'/selectLoupan',
    method:'get',
    params:obj
  })
}
// 添加楼盘
export function addloupan(data){
  return request({
    url:'/loupan/addloupan',
    method:'post',
    data
  })
}
// 获取楼盘详情
export function getLouPanDetail(data){
  return request({
    url:`/loupan/getloupan?id=${data}`,
    method:'get'
  })
}
//修改楼盘信息
export function changeloupan(data){
  return request({
    url:'/loupan/changeloupan',
    method:'post',
    data
  })
}
